package com.sc.nft.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
@Data
public class MapAccumulationVO {

    @ApiModelProperty(value = "收益")
    private String earnings;

    public void setEarnings(BigDecimal earnings) {
        this.earnings = earnings.setScale(2, BigDecimal.ROUND_DOWN).toPlainString();
    }
}
